#pragma once

#include <QWidget>
#include "ui_DlgProgress.h"

class DlgProgress : public QWidget
{
	Q_OBJECT

public:
	DlgProgress(QWidget *parent = Q_NULLPTR);
	~DlgProgress();
	void SetText(QString strText)
	{
		ui.label->setText(strText);
	}
	void SetProgress(float fValue)
	{
		if (fValue==1)
		{
			this->close();
		}
		else
		{
			ui.progressBar->setValue(fValue * 100);
		}
	}
private:
	Ui::DlgProgress ui;
};
